﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMS20.Common
{
    public class Kits
    {
        public static string Vcode = "Vcode";
        public static string Entity = "Entity";
        public static string CookieId = "CookieId";

        public static string GetMD5(string pwd)
        {
            return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "md5");
        }

        public static bool IsInt(string id)
        {
            int outId;
            return int.TryParse(id, out outId);
        }
    }
}
